﻿create proc thuan_qtdanhmucnhomnguoidungxoa  
@ID int  
as  
if not exists(select * from DanhMuc_NhomNguoiDung   Where MaNhomUser=@ID)  
begin  
select ErrCode=0  
end  
else  
begin  
delete from DanhMuc_NhomNguoiDung   WHere MaNhomUser=@ID  
select ErrCode=1  
end  
